package
{
	import flash.display.Sprite;
	import flash.utils.ByteArray;
	
	import tag.doABC2.DoABC2;
	
	/**
	 * http://deixue.com/?p=417
	 * http://blog.caoxudong.info/blog/2013/11/10/avm2_overview_note_3_abc.html
	 * http://deixue.com/?p=281
	 * http://blog.caoxudong.info/blog/2013/11/10/avm2_overview_note_2_run.html
	 * http://blog.csdn.net/rangf/article/details/6310151
	 * https://github.com/magicalhobo/SWFWire
	 * http://bbs.9ria.com/thread-145034-1-1.html
	 * http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
	 * http://es6.ruanyifeng.com/#README
	 * http://yanhaijing.com/es5/#605
	 * http://qiusuoge.com/10797.html
	 * http://www.importnew.com/9155.html
	 * http://www.importnew.com/9206.html
	 * http://www.importnew.com/9248.html
	 * 
	 * 控制流图
	 * http://twjliz.blog.163.com/blog/static/162557615201052244750244/
	 * 
	 * http://book.51cto.com/art/201006/208700.htm
	 * http://blog.sina.com.cn/s/blog_dbc6f4eb0101gzbr.html
	 * http://www.javacodegeeks.com/2013/12/anatomy-of-a-java-decompiler.html
	 * http://metc.gdut.edu.cn/compile/nandian/n-1.htm
	 * http://www.pchou.info/resource/2013/12/31/compiler.html
	 * http://blog.csdn.net/zsy2020314/article/details/9429707
	 * http://blog.csdn.net/bingduanlbd/article/details/8363734
	 * http://wenku.baidu.com/view/610c2201bed5b9f3f90f1c12.html
	 * 
	 * */
	public class SwfDump extends Sprite
	{
		public function SwfDump()
		{
			var arr:Array = [
				0xbf,
				0x14,0x7b,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x66,0x72,0x61,0x6d,0x65,0x31,0x00,
				0x10,0x00,0x2e,0x00,0x03,0x00,0x01,0x00,0x00,0x17,0x00,0x04,0x76,0x6f,0x69,0x64,
				0x03,0x69,0x6e,0x74,0x06,0x53,0x74,0x72,0x69,0x6e,0x67,0x07,0x42,0x6f,0x6f,0x6c,
				0x65,0x61,0x6e,0x06,0xe4,0xb8,0xad,0xe6,0x96,0x87,0x03,0x4b,0x69,0x6d,0x0d,0x66,
				0x6c,0x61,0x73,0x68,0x2e,0x64,0x69,0x73,0x70,0x6c,0x61,0x79,0x06,0x53,0x70,0x72,
				0x69,0x74,0x65,0x04,0x66,0x75,0x6e,0x63,0x05,0x66,0x75,0x6e,0x63,0x31,0x05,0x66,
				0x75,0x6e,0x63,0x32,0x05,0x66,0x75,0x6e,0x63,0x33,0x05,0x45,0x72,0x72,0x6f,0x72,
				0x01,0x65,0x01,0x69,0x06,0x4f,0x62,0x6a,0x65,0x63,0x74,0x0c,0x66,0x6c,0x61,0x73,
				0x68,0x2e,0x65,0x76,0x65,0x6e,0x74,0x73,0x0f,0x45,0x76,0x65,0x6e,0x74,0x44,0x69,
				0x73,0x70,0x61,0x74,0x63,0x68,0x65,0x72,0x0d,0x44,0x69,0x73,0x70,0x6c,0x61,0x79,
				0x4f,0x62,0x6a,0x65,0x63,0x74,0x11,0x49,0x6e,0x74,0x65,0x72,0x61,0x63,0x74,0x69,
				0x76,0x65,0x4f,0x62,0x6a,0x65,0x63,0x74,0x16,0x44,0x69,0x73,0x70,0x6c,0x61,0x79,
				0x4f,0x62,0x6a,0x65,0x63,0x74,0x43,0x6f,0x6e,0x74,0x61,0x69,0x6e,0x65,0x72,0x06,
				0x16,0x01,0x16,0x08,0x18,0x07,0x17,0x01,0x16,0x12,0x00,0x13,0x07,0x01,0x02,0x07,
				0x01,0x03,0x07,0x01,0x04,0x07,0x01,0x05,0x07,0x01,0x07,0x07,0x02,0x09,0x07,0x01,
				0x0a,0x07,0x01,0x0b,0x07,0x01,0x0c,0x07,0x01,0x0d,0x07,0x01,0x0e,0x07,0x01,0x0f,
				0x07,0x04,0x10,0x07,0x01,0x11,0x07,0x05,0x13,0x07,0x02,0x14,0x07,0x02,0x15,0x07,
				0x02,0x16,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x01,0x02,0x02,0x03,
				0x04,0x00,0x08,0x04,0x01,0x03,0x02,0x03,0x06,0x01,0x0b,0x0b,0x00,0x01,0x00,0x02,
				0x02,0x04,0x04,0x04,0x00,0x00,0x02,0x02,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00,
				0x00,0x01,0x05,0x06,0x09,0x03,0x00,0x01,0x04,0x07,0x01,0x00,0x02,0x08,0x01,0x00,
				0x03,0x09,0x01,0x00,0x04,0x0a,0x01,0x00,0x05,0x00,0x00,0x01,0x06,0x01,0x05,0x04,
				0x01,0x00,0x07,0x00,0x01,0x01,0x08,0x09,0x03,0xd0,0x30,0x47,0x00,0x00,0x01,0x01,
				0x01,0x09,0x0a,0x06,0xd0,0x30,0xd0,0x49,0x00,0x47,0x00,0x00,0x02,0x02,0x06,0x09,
				0x0a,0x0e,0xd0,0x30,0xd1,0xd2,0xa0,0xd3,0xa0,0x62,0x04,0xa0,0x85,0x63,0x05,0x47,
				0x00,0x00,0x03,0x04,0x04,0x0a,0x11,0x64,0xd0,0x30,0x57,0x2a,0xd5,0x30,0x65,0x01,
				0x24,0x0a,0x6d,0x01,0x65,0x01,0x25,0xc8,0x01,0x6d,0x01,0x10,0x17,0x00,0x00,0xd0,
				0x30,0xd1,0x30,0x5a,0x00,0x2a,0xd6,0x2a,0x30,0x2b,0x6d,0x01,0x65,0x01,0x25,0x94,
				0x03,0x6d,0x01,0x1d,0x08,0x02,0x24,0xff,0x10,0x20,0x00,0x00,0xd0,0x30,0xd1,0x30,
				0x5a,0x01,0x2a,0xd6,0x30,0x1d,0x08,0x02,0x82,0xd7,0x24,0x00,0x10,0x0c,0x00,0x00,
				0x09,0x29,0x09,0xd3,0x08,0x03,0x03,0x24,0xff,0x1d,0x08,0x02,0x65,0x01,0x25,0xc9,
				0x01,0x6d,0x01,0x1b,0x08,0x00,0x00,0x00,0xef,0xff,0xff,0x47,0x02,0x0c,0x13,0x17,
				0x0b,0x0c,0x0c,0x30,0x34,0x00,0x00,0x01,0x0d,0x00,0x01,0x02,0x00,0x04,0x02,0x03,
				0x09,0x0a,0x0d,0xd0,0x30,0xd1,0x76,0x2a,0x12,0x03,0x00,0x00,0x29,0xd2,0x76,0x48,
				0x00,0x00,0x05,0x02,0x04,0x09,0x0a,0x2b,0xd0,0x30,0x24,0x00,0xd7,0xd1,0x76,0x2a,
				0x12,0x03,0x00,0x00,0x29,0xd2,0x76,0x12,0x07,0x00,0x00,0x24,0x01,0xd7,0x10,0x0f,
				0x00,0x00,0xd1,0x12,0x07,0x00,0x00,0x24,0x02,0xd7,0x10,0x03,0x00,0x00,0x24,0x04,
				0xd7,0xd3,0x48,0x00,0x00,0x06,0x02,0x01,0x01,0x08,0x23,0xd0,0x30,0x65,0x00,0x60,
				0x0e,0x30,0x60,0x0f,0x30,0x60,0x10,0x30,0x60,0x11,0x30,0x60,0x12,0x30,0x60,0x06,
				0x30,0x60,0x06,0x58,0x00,0x1d,0x1d,0x1d,0x1d,0x1d,0x1d,0x68,0x05,0x47,0x00,0x00
			];
			
			var bytes:ByteArray = new ByteArray();
			for(var i:int = 0; i < arr.length; i++){
				bytes.writeByte(arr[i]);
			}
			bytes.position = 0;
			bytes.readByte();
			bytes.readByte();
			bytes.readInt();
			App.doABC2 = new DoABC2();
			App.doABC2.handler(bytes);
		}
	}
}